{include file="public/header" /}
<style type="text/css">
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0px;
        margin-top: 0px
    }

    #title span {
        float: right;
    }

    .btn-active {
        background: #1ab394;
        color: #fff
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            <div class="row row-lg">

                <div style="display:block;clear: both;"></div>
                <div class="fixed-table-toolbar">
                    <form method="get" action="">
                        <div class="pull-left search">
                            <div class="columns columns-right btn-group pull-left">
                                <select class="form-control" name="type_id">
                                    <option value="-1">所有分类</option>
                                    {volist name="type_list" id="vo"}
                                         <option value="{$vo.id}" {if input('get.type_id/d') eq $vo['id']}selected="selected"{/if}>{$vo.name}</option>
                                    {/volist}

                                </select>
                            </div>
                            <div class="pull-right search">
                                <button style="border-radius:0px; border:1px solid #e5e6e7; border-left:0px"
                                        class="btn btn-default btn-outline" type="submit">搜索
                                </button>
                            </div>
                            <div class="pull-right search">
                                <input class="form-control input-outline" type="text" name="content" placeholder="输入举报内容" value="{:input('get.content', '')}" />
                            </div>
                        </div>
                    </form>
                </div>
                <div class="example">
                    <form class="form-horizontal" method="post">
                        <table data-toggle="table">
                            <thead>
                                <tr>
                                    <th data-align="center">id</th>
                                    <th data-align="center">举报者</th>
                                    <th>举报类型</th>
                                    <th>举报分类</th>
                                    <th>举报描述</th>
                                    <th>被举报者</th>
                                    <th>被举报内容</th>
                                    <th>时间</th>
                                    <th>状态</th>
                                    <th>管理</th>
                                </tr>
                            </thead>
                            <tbody>
                            {volist name="data" id="vo"}
                            <tr id="id{$vo.id}">
                                <td>{$vo.id}</td>
                                <td>{$vo.m_nickname}</td>
                                <td>{$vo.rt_name}</td>
                                <td>{$vo.desc}</td>
                                <td>{$vo.category}</td>
                                <td>{$vo.rm_nickname}</td>
                                <td>{$vo.content}</td>
                                <td>{$vo.create_time|date='Y-m-d H:i:s'}</td>

                                <td>{if $vo.state==0}待审{else}已审{/if}</td>

                                <td>
                                    <div class="btn-group">
                                        <div data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">
                                            操作 <span class="caret"></span>
                                        </div>
                                        <ul class="dropdown-menu">
                                            {if $vo['content_id']==''}<li><a href="{:url('content/index', ['id' => $vo['content_id']])}">查看内容</a></li>{/if}
                                            {if $vo['state'] == 0 }<li><a onclick="changeTableVal('report_user','id',{$vo.id},'state',1)">已处理</a></li>{/if}
                                            <li class="divider"></li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page|raw}</div>
            </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table.min.css"}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table.min.js"}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table-zh-CN.min.js"}
